package com.longfor.dragonshard.dto.demo;

import org.apache.commons.lang3.builder.ToStringBuilder;

import javax.validation.constraints.NotNull;

/**
 * 
 * @author chi.zhang
 * @create 2017/10/21 下午6:04
 *
 * @version v1.0
 **/
public class DemoUpdateDTO extends DemoAddDTO {
    private static final long serialVersionUID = -1L;

    @NotNull
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .toString();
    }
}